home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 078 (1990-06)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 078 (1990-06)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / MSH / src / hancmd.c < prev    next >
C/C++ Source or Header  |  1990-06-17  |  995b  |  50 lines

  1. /*-
  2.  * $Id: hancmd.c,v 1.30 90/06/04 23:18:03 Rhialto Rel $
  3.  * $Log:    hancmd.c,v $
  4.  * Revision 1.30  90/06/04  23:18:03  Rhialto
  5.  * Release 1 Patch 3
  6.  * 
  7.  * HANCMD.C
  8.  *
  9.  * The code for the messydos file system handler
  10.  *
  11.  * Special commands through MSH::something file names.
  12.  *
  13.  * This code is (C) Copyright 1990 by Olaf Seibert. All rights reserved. May
  14.  * not be used or copied without a licence.
  15. -*/
  16.  
  17. #include "han.h"
  18.  
  19. #ifdef HDEBUG
  20. #   define    debug(x)  dbprintf x
  21. #else
  22. #   define    debug(x)
  23. #endif
  24.  
  25. extern int    CheckBootBlock;
  26.  
  27. void
  28. HandleCommand(cmd)
  29. register char  *cmd;
  30. {
  31. #ifdef HDEBUG
  32.     if (cmd[1] == 'D') {
  33.     extern short    DBEnable;
  34.  
  35.     DBEnable = name[2] & 0x0F;
  36.     } else
  37. #endif
  38.     if (cmd[1] == 'B') {
  39.     CheckBootBlock = atoi(&cmd[2]);
  40.     } else if (cmd[1] == 'F') {
  41.     if (cmd[2] == '+')
  42.         DiskIOReq->iotd_Req.io_Flags |= IOMDF_40TRACKS;
  43.     else if (cmd[2] == '-')
  44.         DiskIOReq->iotd_Req.io_Flags &= ~IOMDF_40TRACKS;
  45.     else
  46.         DiskIOReq->iotd_Req.io_Flags = atoi(&cmd[2]);
  47.     }
  48. }
  49.  
  50.